<?php
/**
 *
 * UCConfApp class file
 *
 * @category   UC
 * @author     刘海涛 <liuhaitao01@snda.com>
 * @copyright  SDO Group
 * @version    Release: 1.0.0
 * @link       
 * @license    http://www.sdo.com
 */

class UCConfApp
{
	const APP_USER_COUNT = 30;
	const APP_MEMCACHE_FLAG = 'apps';
	const APP_MEMCACHE_USER_KEY = 'uc_app_user_';
	const APP_MEMCACHE_USER_EXPIRE_TIME = 3600;

	const APP_INVITE_SHOW_COUNT = 4;

	const APP_TYPE_SYSTEM	= 1;
	const APP_TYPE_DEFAULT	= 2;
	const APP_TYPE_OTHERS	= 3;

	const APP_SYSTEM_TWITTER = 100026;
	const APP_SYSTEM_MEDAL = 100000001;
	const APP_SYSTEM_FRIEND = 100000002	;
	const APP_SYSTEM_MESSAGE = 100000003;
	const APP_SYSTEM_ACCOUNT = 100000004;
	const APP_SYSTEM_SET = 100000005;
	const APP_DEFAULT_TEST = 100000002;
	const APP_OTHERS_TEST = 3;

	const APP_ERROR_PARAM			= -1;
	const APP_ERROR_INTERFACE		= -2;
	
	//错误返回信息
	static public $ar_app_error = array(
											self::APP_ERROR_PARAM			=> '参数传递错误',
											self::APP_ERROR_INTERFACE		=> 'APP接口错误',
										);
	//系统APP
	static public $ar_system_info = array(	self::APP_SYSTEM_TWITTER,
											self::APP_SYSTEM_MEDAL,
											self::APP_SYSTEM_FRIEND,
											self::APP_SYSTEM_MESSAGE,
											self::APP_SYSTEM_ACCOUNT,
											self::APP_SYSTEM_SET,
										);
	//默认APP
	static public $ar_default_info = array(17);
    
	//勋章的详细配置信息
    static public $ar_others_info = array(
		self::APP_OTHERS_TEST			=> array( 
											'name'		=> 'VIP',
											'type'		=> self::APP_OTHERS_TEST,
											'img'		=> '勋章图片地址',
											'desc'		=> '成为盛大VIP用户',
											),
										);
}

?>